package com.crk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author com.crk
 * @since 2021-03-25
 */
public class Resource extends Model<Resource> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "res_id", type = IdType.AUTO)
    private Integer resId;

    private String resName;


    private Integer resMargin;


    public Integer getResId() {
        return resId;
    }

    public void setResId(Integer resId) {
        this.resId = resId;
    }

    public String getResName() {
        return resName;
    }

    public void setResName(String resName) {
        this.resName = resName;
    }


    public Integer getResMargin() {
        return resMargin;
    }

    public void setResMargin(Integer resMargin) {
        this.resMargin = resMargin;
    }

    @Override
    protected Serializable pkVal() {
        return this.resId;
    }

    @Override
    public String toString() {
        return "Resource{" +
        "resId=" + resId +
        ", resName=" + resName +
        ", resMargin=" + resMargin +
        "}";
    }
}
